package com.tencreat.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tencreat.common.entity.ImMessage;
import com.tencreat.common.entity.ImSession;
import com.tencreat.common.entity.ImUser;
import com.tencreat.common.entity.vo.UserSessionVo;

public interface ImSessionMapper extends BaseMapper<ImSession> {

    Page<UserSessionVo> sessionList(Page<UserSessionVo> page, Long id);

    Page<ImMessage> chatHistory(Page<ImMessage> page, Long id);
}